<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/weuix.min.css" />
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/register.css" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/iconfont.css"/>
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/person_edit.css" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/zoomify.min.css"/>
		<title>摄影师注册</title>
		<script type="text/javascript">
		//静态变量
		var SITE_URL = "{:SITE_URL}";
		var IMG_PATH = "__IMG__";
		var STATIC_PATH = "__STATIC__";
		var WX_APPID = "{$jsapiParams.appId}";
		var	WXJS_TIMESTAMP='{$jsapiParams.timestamp}'; 
		var NONCESTR= '{$jsapiParams.nonceStr}'; 
		var SIGNATURE= '{$jsapiParams.signature}';
	</script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="minify.php?f=__JS__/prefixfree.min.js,__JS__/m/dialog.js,__JS__/m/flipsnap.min.js,__JS__/m/mobile_module.js&v={:SITE_VERSION}"></script>
	</head>

	<body>
		
		<div id="bgimg" style="height:40%;"></div>
		<div class="example">
			<img src="{:ADDON_PUBLIC_PATH}/img/top-bg.jpg" id="touxiang" >
		</div>
		
		<div id="posi">
			<form action="" method="post">
				<div class="weui_cells weui_cells_form">
					<div class="weui_cell">
						<div class="weui_cell_hd"><span class="icon icon-84 icon-interval f-blue" ></span></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" placeholder="请输入姓名" name="thumb">
						</div>
					</div>

					<div class="weui_cell">
						<div class="weui_cell_hd"><span class="iconfont icon-mima-copy-copy icon-interval f-orange" ></span></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" placeholder="请输入手机号码" name="mobile">
						</div>
					</div>

					
				</div>
				
				<div class="weui_btn_area">
		            <a class="weui_btn weui_btn_primary" href="javascript:" id="btn">确定</a>
		        </div>
			</form>
        </div>
       <div class="weui-footer" style="margin-top: 60px;">
		  <p class="weui-footer__links">
		    <a href="http://h.eqxiu.com/s/04twlh4V" class="weui-footer__link">微生活工作室</a>|  <a href="{:U('infoReview')}" class="weui-footer__link">意见反馈</a>
		  </p>
		  <a  href="{:U('term_text_cn')}" class="weui-footer__text" style="border-radius: ;">Copyright © 20016-2017</a>
		</div>
	</body>
	<script src="{:ADDON_PUBLIC_PATH}/js/jquery-3.2.1.min.js"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/zepto.min.js"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/zoomify.min.js"></script>
	<script type="text/javascript">
		
		// $('#touxiang').zoomify();
		$(document).on('click', '#btn', function() {
          	$.showLoading();
		    var data = $('form').serialize();
		    var url = $('form').attr('action');
		    $.ajax({
			    url:url,
			    type:"post",
			    dataType:"json",
			    data:data,
			    success:function(data){
			     	$.hideLoading();
		            console.log(data);
		            if (data.status == 1) {
		                 $.toast(data.info); 
		                 setTimeout(function(){
		                 	//  history.pushState("","","{:U('booksDetail',array('bid'=>I('get.bid')))}");  
		                 	location.href = data.url;
		                 	// window.history.go(-1);
		                 },1500);
		            } else {
		                 $.toast(data.info, "forbidden");
		            }
			    },
			    error:function(){
			      	$.toast("错误", "forbidden");
			    }
			});
		    return false;
		})
			      $.WeiPHP.initWxShare({
	    	    title:"最美档案照——美颜瘦脸",
	    	    imgUrl:"http://wei.gzpyp.edu.cn/Uploads/Picture/2017-09-02/59aa05c299277.png",
	    	    desc:"16,17级可支持在线查看,在线打印,修改背景色+美白美颜+冲印裁剪",
	    	    link: "{:U('index')}",
	    	})
	</script>
</html>